package thread.basic04;

public class LambdaExpress {
    public static void main(String[] args) {
        Thread thread = Thread.currentThread();
        thread.setName("主线程");
        String main = thread.getName();
        System.out.println(main);

        new Thread(()->{
            for (int i = 0; i < 20; i++) {
                System.out.println("lambda express...");
            }
            String name = Thread.currentThread().getName();
            System.out.println(name);
        }).start();
    }

}
